#ifndef __WATCHPOINT_H__
#define __WATCHPOINT_H__

#include "common.h"

typedef struct watchpoint {
	int NO;
	struct watchpoint *next;

	/* TODO: Add more members if necessary */
	int val;
	int pre_val;
	char expr[32];
	bool is_used;
	bool is_changed;
} WP;

#define NR_WP 32
WP wp_pool[NR_WP];

void init_wp_pool();
int wpAdd(char*);
int wpDel(char*);
int wpUpdate();
int wpCheck();
int wpDisplay();
int getUsedWpNum();

#endif
